﻿using Lan.Business.XiTong.IService;
using Lan.Core;
using Lan.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace LanWeb.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class XT_UserController : ControllerBase
    {
        public IXT_UserService Service { get; set; }

        //[HttpGet]
        //public List<XT_User> GetPageList([FromQuery] UserPage model)
        //{
        //    return Service.GetPageList(u=>true,new PageModel() { 
        //        PageIndex=model.Rows,
        //        PageSize=model.Size
        //    });
        //}

        [HttpPost]
        public bool Add()
        {
            ExcelHelper.Save();
            //if (ModelState.IsValid)
            //{
            //}
            //else
            //{
            //    var list = ModelState.Values;
            //}
            return true;
        }
    }

    public class UserPage
    {
        public int Size { get; set; }
        public int Rows { get; set; }
    }
}
